package cn.org.timespace.ons.service.policy.impl;

import java.util.List;

import cn.org.timespace.ons.action.base.MomModel;
import cn.org.timespace.ons.action.policy.DataContentsModel;
import cn.org.timespace.ons.dao.policy.DataContentsDao;
import cn.org.timespace.ons.service.policy.DataContentsService;
import cn.org.timespace.ons.util.pager.Pager;
import cn.org.timespace.ons.vo.base.DataContents;
import cn.org.timespace.ons.vo.base.Mom;
import cn.org.timespace.ons.vo.base.Options;
public class DataContentsServiceImpl implements DataContentsService {

	private DataContentsDao dataContentsDao;
	
	public DataContentsDao getDataContentsDao() {
		return dataContentsDao;
	}

	public void setDataContentsDao(DataContentsDao dataContentsDao) {
		this.dataContentsDao = dataContentsDao;
	}

	@Override
	public void delete(DataContents instance) {
		dataContentsDao.delete(instance);
	}

	@Override
	public List<DataContents> findByCondition(DataContentsModel model) {
		return dataContentsDao.findByCondition(model);
	}

	@Override
	public List<Object> findByCondition(DataContentsModel model,String userName, Pager p) {
		return dataContentsDao.findByCondition(model, userName,p);
	}
	
	@Override
	public List<Object> findByConditionAp(DataContentsModel model,String userName, Pager p) {
		return dataContentsDao.findByConditionAp(model, userName,p);
	}

	@Override
	public DataContents findById(String id) {
		return dataContentsDao.findById(id);
	}

	@Override
	public void save(DataContents instance) {
		dataContentsDao.save(instance);
	}

	@Override
	public void update(DataContents instance) {
		dataContentsDao.update(instance);
	}

	
}
